<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
/*
Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
    return $request->user();
});
*/

Route::prefix('v1')->name('api.v1.')->group(function () {
    Route::get('test', function (Request $request) {
        return '';
        $province = \App\Models\Areas::where('level_type', 1)->selectRaw('0 as parent_id')->addSelect('id', 'level_type', 'short_name')->get();
        $city = \App\Models\Areas::where('level_type', 2)->select('id', 'parent_id', 'level_type', 'short_name')->get();
        $datas = array_merge($province->toArray(), $city->toArray());
        $datas = makeTree($datas);
        return $datas;
        //        $user = \App\Models\SysUser::where('id',2)->with('roles')->first();
        //        dd($user->roles()->pluck('role_name'));
        $result = \App\Models\SysDept::descendantsAndSelf(103)->pluck('id');
        dd($result);
        $request_route_name = $request->route()->getName();
        $request_route_name = str_replace('.', ':', $request_route_name);
        return  $request_route_name;
        return $request->path();
        //        return $request->getRequestUri(); ///api/v1/test?id=1
    })->name('test');

    Route::post('login', [\App\Http\Controllers\V1\AuthController::class, 'login'])->name('login');
    Route::post('logout', [\App\Http\Controllers\V1\AuthController::class, 'logout'])->name('logout');

    Route::get('captcha', function () {
        $data = captcha_for_api();
        return success($data);
    })->name('captcha');

    Route::post('captcha', function (Request $request) {

        if (captcha_api_check($request->captcha, $request->key)) {
            return 'success';
        }
        return 'fail';
        //        dd(request()->all());
        /*
        $rules = ['captcha' => 'required|captcha_api:'. $request->key ];
        $validator = validator()->make(request()->all(), $rules);
        if ($validator->fails()) {
            return 'fail';

        } else {
            return 'success';
        }
        */
    })->name('captcha-verify');
});

Route::prefix('v1')->name('api.v1.')->middleware(['auth', 'sysRequest', 'sysPermission'])->group(function () {

    Route::post('refresh', [\App\Http\Controllers\V1\AuthController::class, 'refresh'])->name('refresh');
    Route::post('me', [\App\Http\Controllers\V1\AuthController::class, 'me'])->name('me');

    /***登录获取信息**/
    Route::get('getInfo', [\App\Http\Controllers\V1\AuthController::class, 'getInfo'])->name('getInfo');
    Route::get('getRouters', [\App\Http\Controllers\V1\AuthController::class, 'getRouters'])->name('getRouters');

    /***字典类型相关**/
    Route::post('createDictType', [\App\Http\Controllers\V1\SysDictTypeController::class, 'create'])->name('createDictType');
    Route::post('updateDictType', [\App\Http\Controllers\V1\SysDictTypeController::class, 'update'])->name('updateDictType');
    Route::get('listDictType', [\App\Http\Controllers\V1\SysDictTypeController::class, 'index'])->name('listDictType');
    Route::get('getDictType', [\App\Http\Controllers\V1\SysDictTypeController::class, 'show'])->name('getDictType');
    Route::post('delDictType/{ids}', [\App\Http\Controllers\V1\SysDictTypeController::class, 'destroy'])->name('delDictType');
    Route::post('refreshDictTypeCache', [\App\Http\Controllers\V1\SysDictTypeController::class, 'refreshCache'])->name('refreshDictTypeCache');

    /***字典数据相关**/
    Route::post('createDictData', [\App\Http\Controllers\V1\SysDictDataController::class, 'create'])->name('createDictData');
    Route::post('updateDictData', [\App\Http\Controllers\V1\SysDictDataController::class, 'update'])->name('updateDictData');
    Route::get('listDictData', [\App\Http\Controllers\V1\SysDictDataController::class, 'index'])->name('listDictData');
    Route::get('getDictData', [\App\Http\Controllers\V1\SysDictDataController::class, 'show'])->name('getDictData');
    Route::post('delDictData/{ids}', [\App\Http\Controllers\V1\SysDictDataController::class, 'destroy'])->name('delDictData');
    /***部门相关**/
    Route::post('createDept', [\App\Http\Controllers\V1\SysDeptController::class, 'create'])->name('createDept');
    Route::post('updateDept', [\App\Http\Controllers\V1\SysDeptController::class, 'update'])->name('updateDept');
    Route::get('listDept', [\App\Http\Controllers\V1\SysDeptController::class, 'index'])->name('listDept');
    Route::get('getDept', [\App\Http\Controllers\V1\SysDeptController::class, 'show'])->name('getDept');
    Route::post('delDept/{ids}', [\App\Http\Controllers\V1\SysDeptController::class, 'destroy'])->name('delDept');
    Route::get('roleDeptTreeselect/{role_id}', [\App\Http\Controllers\V1\SysDeptController::class, 'roleDeptTreeselect'])->name('roleDeptTreeselect');
    Route::get('deptTreeSelect', [\App\Http\Controllers\V1\SysDeptController::class, 'deptTreeSelect'])->name('deptTreeSelect');

    /***菜单相关**/
    Route::post('createMenu', [\App\Http\Controllers\V1\SysMenuController::class, 'create'])->name('createMenu');
    Route::post('updateMenu', [\App\Http\Controllers\V1\SysMenuController::class, 'update'])->name('updateMenu');
    Route::get('listMenu', [\App\Http\Controllers\V1\SysMenuController::class, 'index'])->name('listMenu');
    Route::get('getMenu', [\App\Http\Controllers\V1\SysMenuController::class, 'show'])->name('getMenu');
    Route::post('delMenu/{ids}', [\App\Http\Controllers\V1\SysMenuController::class, 'destroy'])->name('delMenu');
    Route::get('menuTreeSelect', [\App\Http\Controllers\V1\SysMenuController::class, 'menuTreeSelect'])->name('menuTreeSelect');
    Route::get('roleMenuTreeSelect/{role_id}', [\App\Http\Controllers\V1\SysMenuController::class, 'roleMenuTreeSelect'])->name('roleMenuTreeSelect');

    /***角色相关**/
    Route::post('createRole', [\App\Http\Controllers\V1\SysRoleController::class, 'create'])->name('createRole');
    Route::post('updateRole', [\App\Http\Controllers\V1\SysRoleController::class, 'update'])->name('updateRole');
    Route::get('listRole', [\App\Http\Controllers\V1\SysRoleController::class, 'index'])->name('listRole');
    Route::get('getRole', [\App\Http\Controllers\V1\SysRoleController::class, 'show'])->name('getRole');
    Route::post('delRole/{ids}', [\App\Http\Controllers\V1\SysRoleController::class, 'destroy'])->name('delRole');
    Route::post('updateRoleDataScope', [\App\Http\Controllers\V1\SysRoleController::class, 'updateDataScope'])->name('updateRoleDataScope');
    Route::post('changeRoleStatus', [\App\Http\Controllers\V1\SysRoleController::class, 'changeStatus'])->name('changeRoleStatus');

    /***用户相关**/
    Route::post('createSysUser', [\App\Http\Controllers\V1\SysUserController::class, 'create'])->name('createSysUser');
    Route::post('updateSysUser', [\App\Http\Controllers\V1\SysUserController::class, 'update'])->name('updateSysUser');
    Route::get('listSysUser', [\App\Http\Controllers\V1\SysUserController::class, 'index'])->name('listSysUser');
    Route::get('getSysUser', [\App\Http\Controllers\V1\SysUserController::class, 'show'])->name('getSysUser');
    Route::post('delSysUser/{ids}', [\App\Http\Controllers\V1\SysUserController::class, 'destroy'])->name('delSysUser');
    Route::post('changeSysUserStatus', [\App\Http\Controllers\V1\SysUserController::class, 'changeStatus'])->name('changeSysUserStatus');
    Route::post('resetSysUserPwd', [\App\Http\Controllers\V1\SysUserController::class, 'resetPwd'])->name('resetSysUserPwd');
    Route::get('sysUserProfile', [\App\Http\Controllers\V1\SysUserController::class, 'profile'])->name('sysUserProfile');
    Route::post('changeSysUserPwd', [\App\Http\Controllers\V1\SysUserController::class, 'changePwd'])->name('changeSysUserPwd');

    /***参数设置相关**/
    Route::post('createConfig', [\App\Http\Controllers\V1\SysConfigController::class, 'create'])->name('createConfig');
    Route::post('updateConfig', [\App\Http\Controllers\V1\SysConfigController::class, 'update'])->name('updateConfig');
    Route::get('listConfig', [\App\Http\Controllers\V1\SysConfigController::class, 'index'])->name('listConfig');
    Route::get('getConfig', [\App\Http\Controllers\V1\SysConfigController::class, 'show'])->name('getConfig');
    Route::post('delConfig/{ids}', [\App\Http\Controllers\V1\SysConfigController::class, 'destroy'])->name('delConfig');
    Route::get('getConfigValue/{config_key}', [\App\Http\Controllers\V1\SysConfigController::class, 'getValue'])->name('getConfigValue');
    Route::post('refreshConfigCache', [\App\Http\Controllers\V1\SysConfigController::class, 'refreshCache'])->name('refreshConfigCache');

    /***通知公告相关**/
    Route::post('createNotice', [\App\Http\Controllers\V1\SysNoticeController::class, 'create'])->name('createNotice');
    Route::post('updateNotice', [\App\Http\Controllers\V1\SysNoticeController::class, 'update'])->name('updateNotice');
    Route::get('listNotice', [\App\Http\Controllers\V1\SysNoticeController::class, 'index'])->name('listNotice');
    Route::get('getNotice', [\App\Http\Controllers\V1\SysNoticeController::class, 'show'])->name('getNotice');
    Route::post('delNotice/{ids}', [\App\Http\Controllers\V1\SysNoticeController::class, 'destroy'])->name('delNotice');
    Route::get('indexNotice', [\App\Http\Controllers\V1\SysNoticeController::class, 'indexNotice'])->name('indexNotice');

    Route::get('listOperLog', [\App\Http\Controllers\V1\SysOperLogController::class, 'index'])->name('listOperLog');
    Route::post('cleanOperLog', [\App\Http\Controllers\V1\SysOperLogController::class, 'clean'])->name('cleanOperLog');
    Route::post('delOperlog/{ids}', [\App\Http\Controllers\V1\SysOperLogController::class, 'destroy'])->name('delOperlog');

    Route::get('listLoginLog', [\App\Http\Controllers\V1\SysLoginLogController::class, 'index'])->name('listLoginLog');
    Route::post('cleanLoginLog', [\App\Http\Controllers\V1\SysLoginLogController::class, 'clean'])->name('cleanLoginLog');
    Route::post('delLoginLog/{ids}', [\App\Http\Controllers\V1\SysLoginLogController::class, 'destroy'])->name('delLoginLog');

    /***地区相关**/
    Route::get('getAreas', [\App\Http\Controllers\V1\AreasController::class, 'getList'])->name('getAreas');
    Route::get('getHookAreas', [\App\Http\Controllers\V1\AreasController::class, 'getHookAreas'])->name('getHookAreas');

    /***充值产品**/
    Route::get('listCzProduct', [\App\Http\Controllers\V1\CzProductController::class, 'index'])->name('listCzProduct');
    Route::post('addCzProduct', [\App\Http\Controllers\V1\CzProductController::class, 'create'])->name('addCzProduct');
    Route::post('updateCzProduct', [\App\Http\Controllers\V1\CzProductController::class, 'update'])->name('updateCzProduct');
    Route::post('delCzProduct/{ids}', [\App\Http\Controllers\V1\CzProductController::class, 'destroy'])->name('delCzProduct');
    Route::get('getCzProduct', [\App\Http\Controllers\V1\CzProductController::class, 'show'])->name('getCzProduct');
    Route::get('listAllCzProduct', [\App\Http\Controllers\V1\CzProductController::class, 'listAll'])->name('listAllCzProduct');
    Route::get('listCzSpec', [\App\Http\Controllers\V1\CzProductController::class, 'listSpec'])->name('listCzSpec');
    Route::post('changeProductStatus', [\App\Http\Controllers\V1\CzProductController::class, 'changeStatus'])->name('changeProductStatus');
    Route::post('changeProductSplit', [\App\Http\Controllers\V1\CzProductController::class, 'changeSplit'])->name('changeProductSplit');
    Route::post('changeStopFailStatus', [\App\Http\Controllers\V1\CzProductController::class, 'changeStopFail'])->name('changeStopFailStatus');
    Route::post('setProductTimeOut', [\App\Http\Controllers\V1\CzProductController::class, 'setTimeOut'])->name('setProductTimeOut');
    Route::get('listAllSpec', [\App\Http\Controllers\V1\CzProductController::class, 'listAllSpec'])->name('listAllSpec');

    /***渠道相关**/
    Route::get('listCzChannel', [\App\Http\Controllers\V1\CzChannelController::class, 'index'])->name('listCzChannel');
    Route::post('addCzChannel', [\App\Http\Controllers\V1\CzChannelController::class, 'create'])->name('addCzChannel');
    Route::post('changeMoney', [\App\Http\Controllers\V1\CzChannelController::class, 'changeMoney'])->name('changeMoney');
    Route::get('lookChannelMoney', [\App\Http\Controllers\V1\CzChannelController::class, 'lookChannelMoney'])->name('lookChannelMoney');
    Route::get('getChannelMoneyLogList', [\App\Http\Controllers\V1\CzChannelController::class, 'getChannelMoneyLogList'])->name('getChannelMoneyLogList');


    Route::post('syncUpBalance', [\App\Http\Controllers\V1\CzChannelController::class, 'syncUpBalance'])->name('syncUpBalance');

    Route::post('updateCzChannel', [\App\Http\Controllers\V1\CzChannelController::class, 'update'])->name('updateCzChannel');
    Route::post('delCzChannel/{ids}', [\App\Http\Controllers\V1\CzChannelController::class, 'destroy'])->name('delCzChannel');
    Route::get('getCzChannel', [\App\Http\Controllers\V1\CzChannelController::class, 'show'])->name('getCzChannel');
    Route::get('getTemplateList', [\App\Http\Controllers\V1\CzChannelController::class, 'getTemplateList'])->name('getTemplateList');
    Route::get('listAllCzChannel', [\App\Http\Controllers\V1\CzChannelController::class, 'listAll'])->name('listAllCzChannel');
    Route::get('listChannelProduct', [\App\Http\Controllers\V1\CzChannelController::class, 'productList'])->name('listChannelProduct');
    Route::post('addChannelProduct', [\App\Http\Controllers\V1\CzChannelController::class, 'addProduct'])->name('addChannelProduct');
    Route::post('setChannelPrice', [\App\Http\Controllers\V1\CzChannelController::class, 'setPrice'])->name('setChannelPrice');
    Route::get('getChannelProduct', [\App\Http\Controllers\V1\CzChannelController::class, 'getProduct'])->name('getChannelProduct');
    Route::post('updateChannelProduct', [\App\Http\Controllers\V1\CzChannelController::class, 'updateProduct'])->name('updateChannelProduct');
    Route::post('delChannelProduct/{ids}', [\App\Http\Controllers\V1\CzChannelController::class, 'destroyProduct'])->name('delChannelProduct');
    Route::get('listChannelGroup', [\App\Http\Controllers\V1\CzChannelController::class, 'groupList'])->name('listChannelGroup');
    Route::get('listAllChannelGroup', [\App\Http\Controllers\V1\CzChannelController::class, 'listAllGroup'])->name('listAllChannelGroup');
    Route::get('getChannelGroup', [\App\Http\Controllers\V1\CzChannelController::class, 'getGroup'])->name('getChannelGroup');
    Route::post('addChannelGroup', [\App\Http\Controllers\V1\CzChannelController::class, 'addGroup'])->name('addChannelGroup');
    Route::post('updateChannelGroup', [\App\Http\Controllers\V1\CzChannelController::class, 'updateGroup'])->name('updateChannelGroup');
    Route::post('delChannelGroup/{ids}', [\App\Http\Controllers\V1\CzChannelController::class, 'delGroup'])->name('delChannelGroup');
    Route::get('listAllChannelProduct', [\App\Http\Controllers\V1\CzChannelController::class, 'listAllChannelProduct'])->name('listAllChannelProduct');

    /***客户相关**/
    Route::get('listCustomer', [\App\Http\Controllers\V1\CustomerController::class, 'index'])->name('listCustomer');
    Route::post('createCustomer', [\App\Http\Controllers\V1\CustomerController::class, 'create'])->name('createCustomer');
    Route::post('updateCustomer', [\App\Http\Controllers\V1\CustomerController::class, 'update'])->name('updateCustomer');
    Route::get('getCustomer', [\App\Http\Controllers\V1\CustomerController::class, 'show'])->name('getCustomer');
    Route::post('delCustomer/{ids}', [\App\Http\Controllers\V1\CustomerController::class, 'destroy'])->name('delCustomer');
    Route::post('changeCustomerStatus', [\App\Http\Controllers\V1\CustomerController::class, 'changeStatus'])->name('changeCustomerStatus');
    Route::post('resetCustomerPwd', [\App\Http\Controllers\V1\CustomerController::class, 'resetPwd'])->name('resetCustomerPwd');
    Route::post('rechargeBalance', [\App\Http\Controllers\V1\CustomerController::class, 'recharge'])->name('rechargeBalance');
    Route::post('updateCredit', [\App\Http\Controllers\V1\CustomerController::class, 'credit'])->name('updateCredit');
    Route::get('listAllCustomer', [\App\Http\Controllers\V1\CustomerController::class, 'listAll'])->name('listAllCustomer');
    Route::post('resetCustomerKey', [\App\Http\Controllers\V1\CustomerController::class, 'resetKey'])->name('resetCustomerKey');
    Route::get('getStatics', [\App\Http\Controllers\V1\CustomerController::class, 'getStatics'])->name('getStatics');
    Route::post('userExport', [\App\Http\Controllers\V1\CustomerController::class, 'userExport'])->name('userExport');


    /***客户产品相关**/
    Route::get('listCustomerProduct', [\App\Http\Controllers\V1\CustomerProductController::class, 'index'])->name('listCustomerProduct');
    Route::post('addCustomerProduct', [\App\Http\Controllers\V1\CustomerProductController::class, 'addProduct'])->name('addCustomerProduct');
    Route::post('changeUserDiscount', [\App\Http\Controllers\V1\CustomerProductController::class, 'changeUserDiscount'])->name('changeUserDiscount');
    Route::get('getCustomerProduct', [\App\Http\Controllers\V1\CustomerProductController::class, 'show'])->name('getCustomerProduct');
    Route::post('delCustomerProduct/{ids}', [\App\Http\Controllers\V1\CustomerProductController::class, 'destroy'])->name('delCustomerProduct');

    /***客户分组产品**/
    Route::get('listUserGroupProduct', [\App\Http\Controllers\V1\UserGroupProductController::class, 'index'])->name('listUserGroupProduct');
    Route::post('addUserGroupProduct', [\App\Http\Controllers\V1\UserGroupProductController::class, 'addProduct'])->name('addUserGroupProduct');
    Route::post('changeUserGroupDiscount', [\App\Http\Controllers\V1\UserGroupProductController::class, 'changeUserGroupDiscount'])->name('changeUserGroupDiscount');
    Route::get('getUserGroupProduct', [\App\Http\Controllers\V1\UserGroupProductController::class, 'show'])->name('getUserGroupProduct');
    Route::post('delUserGroupProduct/{ids}', [\App\Http\Controllers\V1\UserGroupProductController::class, 'destroy'])->name('delUserGroupProduct');

    /***客户分组**/
    Route::post('createUserGroup', [\App\Http\Controllers\V1\UserGroupController::class, 'create'])->name('createUserGroup');
    Route::post('updateUserGroup', [\App\Http\Controllers\V1\UserGroupController::class, 'update'])->name('updateUserGroup');
    Route::get('listUserGroup', [\App\Http\Controllers\V1\UserGroupController::class, 'index'])->name('listUserGroup');
    Route::get('getUserGroup', [\App\Http\Controllers\V1\UserGroupController::class, 'show'])->name('getUserGroup');
    Route::post('delUserGroup/{ids}', [\App\Http\Controllers\V1\UserGroupController::class, 'destroy'])->name('delUserGroup');
    Route::get('listAllUserGroup', [\App\Http\Controllers\V1\UserGroupController::class, 'listAll'])->name('listAllUserGroup');

    /***业务中心**/
    Route::get('getProductByMobile', [\App\Http\Controllers\V1\MobiController::class, 'getProductByMobile'])->name('getProductByMobile');
    Route::post('mobileRecharge', [\App\Http\Controllers\V1\MobiController::class, 'recharge'])->name('mobileRecharge');
    Route::get('getMobiOrderList', [\App\Http\Controllers\V1\MobiController::class, 'orderList'])->name('getMobiOrderList');
    Route::get('getMobiProductList', [\App\Http\Controllers\V1\MobiController::class, 'productList'])->name('getMobiProductList');
    Route::get('getMobiBalanceLog', [\App\Http\Controllers\V1\MobiController::class, 'getBalanceLog'])->name('getMobiBalanceLog');
    Route::get('getMobiCzOrderStatics', [\App\Http\Controllers\V1\MobiController::class, 'statics'])->name('getMobiCzOrderStatics');
    Route::post('exportMobiUserOrderList', [\App\Http\Controllers\V1\MobiController::class, 'exportUserOrder'])->name('exportMobiUserOrderList');
    Route::get('getMobiUserInfo', [\App\Http\Controllers\V1\MobiController::class, 'getUserInfo'])->name('getMobiUserInfo');
    Route::post('resetMobiUserPwd', [\App\Http\Controllers\V1\MobiController::class, 'resetPwd'])->name('resetMobiUserPwd');
    Route::post('getMobiUserSecret', [\App\Http\Controllers\V1\MobiController::class, 'getSecret'])->name('getMobiUserSecret');
    Route::get('getProductByIsp', [\App\Http\Controllers\V1\MobiController::class, 'getProductByIsp'])->name('getProductByIsp');

    /***余额记录**/
    Route::get('getBalanceLogList', [\App\Http\Controllers\V1\BalanceController::class, 'getBalanceLog'])->name('getBalanceLogList');
    Route::post('balanceLogExport', [\App\Http\Controllers\V1\BalanceController::class, 'exportData'])->name('balanceLogExport');

    /**订单相关**/
    Route::get('getCzOrderStatics', [\App\Http\Controllers\V1\CzOrderController::class, 'statics'])->name('getCzOrderStatics');
    Route::get('getUserCzOrderList', [\App\Http\Controllers\V1\CzOrderController::class, 'userOrderList'])->name('getUserCzOrderList');
    Route::post('exportUserOrderList', [\App\Http\Controllers\V1\CzOrderController::class, 'exportUserOrder'])->name('exportUserOrderList');
    Route::get('getChannelCzOrderList', [\App\Http\Controllers\V1\CzOrderController::class, 'channelOrderList'])->name('getChannelCzOrderList');
    Route::post('stopCzOrder', [\App\Http\Controllers\V1\CzOrderController::class, 'stopCzOrder'])->name('stopCzOrder');
    Route::post('updateCzOrderStatus', [\App\Http\Controllers\V1\CzOrderController::class, 'updateOrderStatus'])->name('updateCzOrderStatus');


    Route::post('cacheOrderSubmit', [\App\Http\Controllers\V1\CzOrderController::class, 'cacheOrderSubmit'])->name('cacheOrderSubmit');
    Route::post('stopFailOrderSubmit', [\App\Http\Controllers\V1\CzOrderController::class, 'stopFailOrderSubmit'])->name('stopFailOrderSubmit');
    Route::post('czOrderCallback', [\App\Http\Controllers\V1\CzOrderController::class, 'orderCallback'])->name('czOrderCallback');
    Route::post('updateChannelOrderStatus', [\App\Http\Controllers\V1\CzOrderController::class, 'updateChannelOrderStatus'])->name('updateChannelOrderStatus');
    Route::post('checkChannelOrder', [\App\Http\Controllers\V1\CzOrderController::class, 'checkChannelOrder'])->name('checkChannelOrder');
    Route::post('exportChannelOrderList', [\App\Http\Controllers\V1\CzOrderController::class, 'exportChannelOrder'])->name('exportChannelOrderList');
    Route::post('orderReSubmit', [\App\Http\Controllers\V1\CzOrderController::class, 'orderReSubmit'])->name('orderReSubmit');
    Route::post('updateOrderProcessType', [\App\Http\Controllers\V1\CzOrderController::class, 'updateOrderProcessType'])->name('updateOrderProcessType');

    Route::get('getCzOrderNums', [\App\Http\Controllers\V1\CzOrderController::class, 'getOrderNums'])->name('getCzOrderNums');
    Route::post('mutiChangeStatus2', [\App\Http\Controllers\V1\CzOrderController::class, 'mutiChangeStatus2'])->name('mutiChangeStatus2');

    // 导出订单
    Route::post('exportCensus', [\App\Http\Controllers\V1\CzOrderController::class, 'exportCensus'])->name('exportCensus');


    /***拦截器相关**/
    Route::get('listHookSpec', [\App\Http\Controllers\V1\CzHookSpecController::class, 'index'])->name('listHookSpec');
    Route::post('addHookSpec', [\App\Http\Controllers\V1\CzHookSpecController::class, 'add'])->name('addHookSpec');
    Route::get('getHookSpec', [\App\Http\Controllers\V1\CzHookSpecController::class, 'show'])->name('getHookSpec');
    Route::post('delHookSpec/{ids}', [\App\Http\Controllers\V1\CzHookSpecController::class, 'destroy'])->name('delHookSpec');

    Route::post('delOrderData', [\App\Http\Controllers\V1\CzOrderController::class, 'delOrderData'])->name('delOrderData');


    // 20220527 充值号码黑名单
    Route::get('czMobileBlank', [\App\Http\Controllers\V1\CzMobileBlankController::class, 'getList'])->name('czMobileBlank');
    Route::post('addCzMobileBlank', [\App\Http\Controllers\V1\CzMobileBlankController::class, 'add'])->name('addCzMobileBlank');
    Route::post('delMobileBlank', [\App\Http\Controllers\V1\CzMobileBlankController::class, 'del'])->name('delMobileBlank');


    // 20230102 产品添加黑名单
    Route::get('getCzProductBlack', [\App\Http\Controllers\V1\CzProductBlackController::class, 'getList'])->name('getCzProductBlack');
    Route::post('addCzProductBlack', [\App\Http\Controllers\V1\CzProductBlackController::class, 'add'])->name('addCzProductBlack');
    Route::post('changeCzProductBlack', [\App\Http\Controllers\V1\CzProductBlackController::class, 'change'])->name('changeCzProductBlack');
    Route::post('delCzProductBlack', [\App\Http\Controllers\V1\CzProductBlackController::class, 'del'])->name('delCzProductBlack');

    // 产品限购
    Route::get('getCzProductLimit', [\App\Http\Controllers\V1\ProductLimitController::class, 'getList'])->name('getCzProductLimit');
    Route::post('addCzProductLimit', [\App\Http\Controllers\V1\ProductLimitController::class, 'add'])->name('addCzProductLimit');
    Route::post('changeCzProductLimit', [\App\Http\Controllers\V1\ProductLimitController::class, 'change'])->name('changeCzProductLimit');
    Route::post('delCzProductLimit', [\App\Http\Controllers\V1\ProductLimitController::class, 'del'])->name('delCzProductLimit');


    // banner
    Route::get('getBannerList', [\App\Http\Controllers\V1\BannerController::class, 'getList'])->name('getBannerList');
    Route::post('addBanner', [\App\Http\Controllers\V1\BannerController::class, 'add'])->name('addBanner');
    Route::post('changeBanner', [\App\Http\Controllers\V1\BannerController::class, 'change'])->name('changeBanner');
    Route::post('delBanner', [\App\Http\Controllers\V1\BannerController::class, 'del'])->name('delBanner');
    // 上传图片
    Route::post('commonUploadFile', [\App\Http\Controllers\V1\BannerController::class, 'commonUploadFile'])->name('commonUploadFile');


    Route::get('getPayList', [\App\Http\Controllers\V1\PaymentController::class, 'index'])->name('getPayList');
    Route::get('showPay', [\App\Http\Controllers\V1\PaymentController::class, 'show'])->name('showPay');
    Route::get('getPayAllList', [\App\Http\Controllers\V1\PaymentController::class, 'getPayAllList'])->name('getPayAllList');
    Route::get('getPayTemplateList', [\App\Http\Controllers\V1\PaymentController::class, 'getPayTemplateList'])->name('getPayTemplateList');
    Route::post('addPay', [\App\Http\Controllers\V1\PaymentController::class, 'add'])->name('addPay');
    Route::post('changePay', [\App\Http\Controllers\V1\PaymentController::class, 'change'])->name('changePay');
    Route::post('delPay', [\App\Http\Controllers\V1\PaymentController::class, 'destory'])->name('delPay');


    // 退款订单
    Route::post('refundOrder', [\App\Http\Controllers\V1\PayController::class, 'refundOrder'])->name('refundOrder');
});

// 小程序版本1
Route::get('mini/getUserInfo', [\App\Http\Controllers\V1\MiniController::class, 'getUserInfo'])->name('getUserInfo');
Route::prefix('mini')->name('mini.v1.')->middleware(['auth:mini_user'])->group(function () {
    // Route::get('getUserInfo', [\App\Http\Controllers\V1\MiniController::class, 'getUserInfo'])->name('getUserInfo');
    Route::post('createOrder', [\App\Http\Controllers\V1\MiniController::class, 'createOrder'])->name('createOrder');
    Route::post('createOrder2', [\App\Http\Controllers\V1\MiniController::class, 'createOrder2'])->name('createOrder2');
    Route::get('getOrderList', [\App\Http\Controllers\V1\MiniController::class, 'getOrderList'])->name('getOrderList');
});
// 小程序版本2（严选快享）
Route::prefix('miniV2')->name('mini.v2.')->middleware(['auth:mini_user'])->group(function () {

    Route::post('createOrder', [\App\Http\Controllers\V1\MiniV2Controller::class, 'createOrder'])->name('createOrder');
    Route::post('createOrder2', [\App\Http\Controllers\V1\MiniV2Controller::class, 'createOrder2'])->name('createOrder2');
    Route::get('getOrderList', [\App\Http\Controllers\V1\MiniV2Controller::class, 'getOrderList'])->name('getOrderList');
    Route::post('createOrderForFast', [\App\Http\Controllers\V1\MiniV2Controller::class, 'createOrderForFast'])->name('createOrderForFast');
});


Route::prefix('miniV2')->name('mini.v2.')->group(function () {
    Route::get('getUserInfo', [\App\Http\Controllers\V1\MiniV2Controller::class, 'getUserInfo'])->name('getUserInfo');
    Route::post('getUserSession', [\App\Http\Controllers\V1\MiniV2Controller::class, 'getUserSession'])->name('getUserSession');
    Route::get('getDetailImg', [\App\Http\Controllers\V1\MiniV2Controller::class, 'getDetailImg'])->name('getDetailImg');
    Route::get('getQuestion', [\App\Http\Controllers\V1\MiniV2Controller::class, 'getQuestion'])->name('getQuestion');
    Route::get('getDescInfo', [\App\Http\Controllers\V1\MiniV2Controller::class, 'getDescInfo'])->name('getDescInfo');
    // 获取首页默认产品
    Route::get('getProductList', [\App\Http\Controllers\V1\MiniV2Controller::class, 'getProductList'])->name('getProductList');
    Route::get('getProductList2', [\App\Http\Controllers\V1\MiniV2Controller::class, 'getProductList2'])->name('getProductList2');
    // 获取首页号码匹配产品
    Route::get('getProductByMobile', [\App\Http\Controllers\V1\MiniV2Controller::class, 'getProductByMobile'])->name('getProductList');
    Route::get('getHomeImg', [\App\Http\Controllers\V1\MiniV2Controller::class, 'getHomeImg'])->name('getHomeImg');
    Route::get('getIspBymobile', [\App\Http\Controllers\V1\MiniV2Controller::class, 'getIspBymobile'])->name('getIspBymobile');
    Route::get('testPay', [\App\Http\Controllers\V1\MiniV2Controller::class, 'testPay'])->name('testPay');
});


// 小程序版本3(严选优充)
Route::prefix('miniV3')->name('mini.v3.')->middleware(['auth:mini_user'])->group(function () {

    Route::post('createOrder', [\App\Http\Controllers\V1\MiniV3Controller::class, 'createOrder'])->name('createOrder');
    Route::post('createOrder2', [\App\Http\Controllers\V1\MiniV3Controller::class, 'createOrder2'])->name('createOrder2');
    Route::get('getOrderList', [\App\Http\Controllers\V1\MiniV3Controller::class, 'getOrderList'])->name('getOrderList');
    Route::post('createOrderForFast', [\App\Http\Controllers\V1\MiniV3Controller::class, 'createOrderForFast'])->name('createOrderForFast');
});


Route::prefix('miniV3')->name('mini.v3.')->group(function () {
    Route::get('getUserInfo', [\App\Http\Controllers\V1\MiniV3Controller::class, 'getUserInfo'])->name('getUserInfo');
    Route::post('getUserSession', [\App\Http\Controllers\V1\MiniV3Controller::class, 'getUserSession'])->name('getUserSession');
    Route::get('getDetailImg', [\App\Http\Controllers\V1\MiniV3Controller::class, 'getDetailImg'])->name('getDetailImg');
    Route::get('getQuestion', [\App\Http\Controllers\V1\MiniV3Controller::class, 'getQuestion'])->name('getQuestion');
    Route::get('getDescInfo', [\App\Http\Controllers\V1\MiniV3Controller::class, 'getDescInfo'])->name('getDescInfo');
    // 获取首页默认产品
    Route::get('getProductList', [\App\Http\Controllers\V1\MiniV3Controller::class, 'getProductList'])->name('getProductList');
    Route::get('getProductList2', [\App\Http\Controllers\V1\MiniV3Controller::class, 'getProductList2'])->name('getProductList2');
    // 获取首页号码匹配产品
    Route::get('getProductByMobile', [\App\Http\Controllers\V1\MiniV3Controller::class, 'getProductByMobile'])->name('getProductList');
    Route::get('getHomeImg', [\App\Http\Controllers\V1\MiniV3Controller::class, 'getHomeImg'])->name('getHomeImg');
    Route::get('getIspBymobile', [\App\Http\Controllers\V1\MiniV3Controller::class, 'getIspBymobile'])->name('getIspBymobile');
    // 测试支付
    Route::get('testPay', [\App\Http\Controllers\V1\MiniV3Controller::class, 'testPay'])->name('testPay');
});


// 小程序版本(严选无忧)
Route::prefix('miniV4')->name('mini.v4.')->middleware(['auth:mini_user'])->group(function () {

    Route::post('createOrder', [\App\Http\Controllers\V1\MiniV4Controller::class, 'createOrder'])->name('createOrder');
    Route::post('createOrder2', [\App\Http\Controllers\V1\MiniV4Controller::class, 'createOrder2'])->name('createOrder2');
    Route::get('getOrderList', [\App\Http\Controllers\V1\MiniV4Controller::class, 'getOrderList'])->name('getOrderList');
    Route::post('createOrderForFast', [\App\Http\Controllers\V1\MiniV4Controller::class, 'createOrderForFast'])->name('createOrderForFast');
});



Route::prefix('miniV4')->name('mini.v4.')->group(function () {
    Route::get('getUserInfo', [\App\Http\Controllers\V1\MiniV4Controller::class, 'getUserInfo'])->name('getUserInfo');
    Route::post('getUserSession', [\App\Http\Controllers\V1\MiniV4Controller::class, 'getUserSession'])->name('getUserSession');
    Route::get('getDetailImg', [\App\Http\Controllers\V1\MiniV4Controller::class, 'getDetailImg'])->name('getDetailImg');
    Route::get('getQuestion', [\App\Http\Controllers\V1\MiniV4Controller::class, 'getQuestion'])->name('getQuestion');
    Route::get('getDescInfo', [\App\Http\Controllers\V1\MiniV4Controller::class, 'getDescInfo'])->name('getDescInfo');
    // 获取首页默认产品
    Route::get('getProductList', [\App\Http\Controllers\V1\MiniV4Controller::class, 'getProductList'])->name('getProductList');
    Route::get('getProductList2', [\App\Http\Controllers\V1\MiniV4Controller::class, 'getProductList2'])->name('getProductList2');
    // 获取首页号码匹配产品
    Route::get('getProductByMobile', [\App\Http\Controllers\V1\MiniV4Controller::class, 'getProductByMobile'])->name('getProductList');
    Route::get('getHomeImg', [\App\Http\Controllers\V1\MiniV4Controller::class, 'getHomeImg'])->name('getHomeImg');
    Route::get('getIspBymobile', [\App\Http\Controllers\V1\MiniV4Controller::class, 'getIspBymobile'])->name('getIspBymobile');
    Route::get('testPay', [\App\Http\Controllers\V1\MiniV4Controller::class, 'testPay'])->name('testPay');
});



// 小程序版本(严选易充)
Route::prefix('miniV5')->name('mini.v5.')->middleware(['auth:mini_user'])->group(function () {

    Route::post('createOrder', [\App\Http\Controllers\V1\MiniV5Controller::class, 'createOrder'])->name('createOrder');
    Route::post('createOrder2', [\App\Http\Controllers\V1\MiniV5Controller::class, 'createOrder2'])->name('createOrder2');
    Route::get('getOrderList', [\App\Http\Controllers\V1\MiniV5Controller::class, 'getOrderList'])->name('getOrderList');
    Route::post('createOrderForFast', [\App\Http\Controllers\V1\MiniV5Controller::class, 'createOrderForFast'])->name('createOrderForFast');
});

Route::prefix('miniV5')->name('mini.v5.')->group(function () {
    Route::get('getUserInfo', [\App\Http\Controllers\V1\MiniV5Controller::class, 'getUserInfo'])->name('getUserInfo');
    Route::post('getUserSession', [\App\Http\Controllers\V1\MiniV5Controller::class, 'getUserSession'])->name('getUserSession');
    Route::get('getDetailImg', [\App\Http\Controllers\V1\MiniV5Controller::class, 'getDetailImg'])->name('getDetailImg');
    Route::get('getQuestion', [\App\Http\Controllers\V1\MiniV5Controller::class, 'getQuestion'])->name('getQuestion');
    Route::get('getDescInfo', [\App\Http\Controllers\V1\MiniV5Controller::class, 'getDescInfo'])->name('getDescInfo');
    // 获取首页默认产品
    Route::get('getProductList', [\App\Http\Controllers\V1\MiniV5Controller::class, 'getProductList'])->name('getProductList');
    Route::get('getProductList2', [\App\Http\Controllers\V1\MiniV5Controller::class, 'getProductList2'])->name('getProductList2');
    // 获取首页号码匹配产品
    Route::get('getProductByMobile', [\App\Http\Controllers\V1\MiniV5Controller::class, 'getProductByMobile'])->name('getProductList');
    Route::get('getHomeImg', [\App\Http\Controllers\V1\MiniV5Controller::class, 'getHomeImg'])->name('getHomeImg');
    Route::get('getIspBymobile', [\App\Http\Controllers\V1\MiniV5Controller::class, 'getIspBymobile'])->name('getIspBymobile');
    Route::get('testPay', [\App\Http\Controllers\V1\MiniV5Controller::class, 'testPay'])->name('testPay');
});



Route::prefix('cz')->name('api.cz.')->group(function () {
    Route::post('queryBalance', [\App\Http\Controllers\cz\CzController::class, 'queryBalance'])->name('queryBalance');
    Route::post('orderSubmit', [\App\Http\Controllers\cz\CzController::class, 'orderSubmit'])->name('orderSubmit');
    Route::post('queryOrder', [\App\Http\Controllers\cz\CzController::class, 'queryOrder'])->name('queryOrder');
    Route::post('productList', [\App\Http\Controllers\cz\CzController::class, 'productList'])->name('productList');

    //    Route::any('test', [\App\Http\Controllers\TestController::class, 'index'])->name('cztest');
});


//测试根据手机号和面值，充值中修改为成功
Route::any('updateCzOrderStatus2', [\App\Http\Controllers\cz\CzOrderController::class, 'updateOrderStatus'])->name('updateCzOrderStatus2');
Route::any('test', [\App\Http\Controllers\cz\CzOrderController::class, 'test'])->name('test');
Route::any('testCb', [\App\Http\Controllers\cz\CzOrderController::class, 'testCb'])->name('testCb');
Route::any('updateCzOrderStatus4', [\App\Http\Controllers\cz\CzOrderController::class, 'refund'])->name('updateCzOrderStatus4');
// 2022-06-23
Route::post('asyncOrderStatus', [\App\Http\Controllers\cz\CzOrderController::class, 'asyncOrderStatus'])->name('asyncOrderStatus');

Route::any('getChannelOrderStatus', [\App\Http\Controllers\cz\CzOrderController::class, 'getChannelOrderStatus'])->name('getChannelOrderStatus');
// 修改客户订单为缓存
Route::post('changeToCache', [\App\Http\Controllers\cz\CzOrderController::class, 'changeToCache'])->name('changeToCache');
//固定删除渠道订单
Route::any('deleteChannelOrder', [\App\Http\Controllers\cz\CzOrderController::class, 'deleteChannelOrder'])->name('deleteChannelOrder');
// 修改提交上游超时处理为失败
Route::any('changeChannelOrderFail', [\App\Http\Controllers\cz\CzOrderController::class, 'changeChannelOrderFail'])->name('deleteChannelOrder');


Route::any('setPhone', [\App\Http\Controllers\cz\CzOrderController::class, 'setPhone'])->name('setPhone');

Route::any('addArea', [\App\Http\Controllers\cz\CzOrderController::class, 'addArea'])->name('addArea');
// Route::any('mxRefund', [\App\Http\Controllers\cz\CzOrderController::class, 'mxRefund'])->name('mxRefund');


Route::prefix('sync')->name('api.sync.')->group(function () {
    Route::get('getMenu', [\App\Http\Controllers\SyncMenuController::class, 'getMenu'])->name('getMenu');
    Route::get('syncMenu', [\App\Http\Controllers\SyncMenuController::class, 'syncMenu'])->name('syncMenu');
    // php 配置文件中允许执行shell脚本(shell_exec)
    // 需要有在public目录下创建文件的权限
    Route::any('downZipFile', [\App\Http\Controllers\Script\IndexController::class, 'downZipFile'])->name('downZipFile');
    Route::any('addChannelCol', [\App\Http\Controllers\Script\IndexController::class, 'addChannelCol'])->name('addChannelCol');
    Route::any('addOrderCol', [\App\Http\Controllers\Script\IndexController::class, 'addOrderCol'])->name('addOrderCol');
    Route::any('addChannelMoney', [\App\Http\Controllers\Script\IndexController::class, 'addChannelMoney'])->name('addChannelMoney');

    Route::any('addProductLimit', [\App\Http\Controllers\Script\IndexController::class, 'addProductLimit'])->name('addProductLimit');

    // 添加订单凭证和用户是否透传
    Route::any('addVoucher', [\App\Http\Controllers\Script\IndexController::class, 'addVoucher'])->name('addVoucher');
    Route::any('addUserVoucher', [\App\Http\Controllers\Script\IndexController::class, 'addUserVoucher'])->name('addUserVoucher');

    // 添加客户下单的手机号一天的上限
    Route::any('addUserPhoneMax', [\App\Http\Controllers\Script\IndexController::class, 'addUserPhoneMax'])->name('addUserPhoneMax');
});




// 开放平台接口
// Route::any('validateMobile', [\App\Http\Controllers\YunController::class, 'validateMobile'])->name('validateMobile');
// Route::any('getOrderList', [\App\Http\Controllers\YunController::class, 'getOrderList'])->name('getOrderList');
// Route::any('callbackOrder/{pwd}/{goodsNo}/{barcode}', [\App\Http\Controllers\YunController::class, 'callbackOrder'])->name('callbackOrder');

// Route::any('getOrderBySn', [\App\Http\Controllers\YunController::class, 'getOrderBySn'])->name('getOrderBySn');

// Route::any('exportCensus1', [\App\Http\Controllers\V1\CzOrderController::class, 'exportCensus'])->name('exportCensus');
Route::any('getPhone', [\App\Http\Controllers\cz\CzOrderController::class, 'getPhone'])->name('getPhone');
Route::any('testOrder', [\App\Http\Controllers\TestController::class, 'testOrder'])->name('testOrder');
Route::any('changeOrder', [\App\Http\Controllers\TestController::class, 'changeOrder'])->name('changeOrder');
// 测试获取支付参数
Route::get('getPayParams', [\App\Http\Controllers\V1\PayController::class, 'getPayParams'])->name('getPayParams');
// 支付成功回调
Route::any('payCallback', [\App\Http\Controllers\V1\PayController::class, 'payCallback'])->name('payCallback');
Route::any('thirdPayCallback/{id}', [\App\Http\Controllers\V1\PayController::class, 'thirdPayCallback'])->name('thirdPayCallback');
// 支付回调 v2
Route::any('payCallbackV2/{code}/{id}', [\App\Http\Controllers\V1\PayController::class, 'payCallbackV2'])->name('payCallbackV2');
// Route::any('mini/payCallbackV2/{code}/{id}', [\App\Http\Controllers\V1\PayController::class, 'payCallbackV2'])->name('payCallbackV2');
// 回调中退款
Route::get('refund', [\App\Http\Controllers\V1\PayController::class, 'refund'])->name('refund');



Route::get('getBanner', [\App\Http\Controllers\V1\PayController::class, 'getBanner'])->name('getBanner');
Route::get('getDetailImg', [\App\Http\Controllers\V1\PayController::class, 'getDetailImg'])->name('getDetailImg');
Route::get('getDescInfo', [\App\Http\Controllers\V1\PayController::class, 'getDescInfo'])->name('getDescInfo');
Route::get('getIspBymobile', [\App\Http\Controllers\V1\PayController::class, 'getIspBymobile'])->name('getIspBymobile');
// 下单接口
Route::post('submitOrder', [\App\Http\Controllers\V1\PayController::class, 'createOrder'])->name('h5CreateOrder');

// 获取订单列表
Route::get('getOrderList', [\App\Http\Controllers\V1\PayController::class, 'getOrderList'])->name('getOrderList');
Route::get('getOrderInfo', [\App\Http\Controllers\V1\PayController::class, 'getOrderInfo'])->name('getOrderInfo');

Route::get('getImgList', [\App\Http\Controllers\V1\PayController::class, 'getImgList'])->name('getImgList');


// 小程序接口
Route::get('getGoodsList', [\App\Http\Controllers\V1\MiniController::class, 'getGoodsList'])->name('getGoodsList');
Route::get('getMiniBanner', [\App\Http\Controllers\V1\MiniController::class, 'getMiniBanner'])->name('getMiniBanner');
Route::post('getUserSession', [\App\Http\Controllers\V1\MiniController::class, 'getUserSession'])->name('getUserSession');
Route::get('getContact', [\App\Http\Controllers\V1\MiniController::class, 'getContact'])->name('getContact');
Route::get('urlCode', [\App\Http\Controllers\V1\MiniController::class, 'urlCode'])->name('urlCode');
Route::get('getLoveInfo', [\App\Http\Controllers\V1\MiniController::class, 'getLoveInfo'])->name('getLoveInfo');
Route::get('getAddressByIp', [\App\Http\Controllers\V1\MiniController::class, 'getAddressByIp'])->name('getAddressByIp');
Route::get('getAreaByPhone', [\App\Http\Controllers\V1\MiniController::class, 'getAreaByPhone'])->name('getAreaByPhone');
Route::get('getDescImg', [\App\Http\Controllers\V1\MiniController::class, 'getDescImg'])->name('getDescImg');

Route::get('orderNorifyUrl', [\App\Http\Controllers\V1\MiniController::class, 'orderNorifyUrl'])->name('orderNorifyUrl');

Route::get('getLink', [\App\Http\Controllers\V1\MiniController::class, 'getLink'])->name('getLink');

Route::get('getHomeProduct', [\App\Http\Controllers\V1\MiniController::class, 'getHomeProduct'])->name('getHomeProduct');
Route::get('getQuestion', [\App\Http\Controllers\V1\MiniController::class, 'getQuestion'])->name('getQuestion');
Route::get('getOrderInfo', [\App\Http\Controllers\V1\MiniController::class, 'getOrderInfo'])->name('getOrderInfo');

Route::get('getMiniDetailImg', [\App\Http\Controllers\V1\MiniController::class, 'getMiniDetailImg'])->name('getMiniDetailImg');
Route::get('getTestPayParams', [\App\Http\Controllers\V1\PayController::class, 'getPayParams'])->name('getTestPayParams');
// 获取小程序短链接
Route::get('getShortLink', [\App\Http\Controllers\V1\MiniV3Controller::class, 'getShortLink'])->name('getTestPayParams');


// 短信通知
// Route::get('notifyMsg', [\App\Http\Controllers\cz\CzOrderController::class, 'notifyMsg'])->name('notifyMsg');
Route::get('checkOrder', [\App\Http\Controllers\cz\CzOrderController::class, 'checkOrder'])->name('checkOrder');
// 洋葱select order
Route::get('getYcList', [\App\Http\Controllers\cz\CzOrderController::class, 'getYcList'])->name('getYcList');





// 权益小程序
// 不需要鉴权
Route::prefix('miniQy')->name('mini.v1.')->group(function () {
    Route::get('getHomeProduct', [\App\Http\Controllers\V1\MiniQyController::class, 'getHomeProduct'])->name('getHomeProduct');
    Route::get('getInfo', [\App\Http\Controllers\V1\MiniQyController::class, 'getInfo'])->name('getInfo');
    Route::get('getInfoByH5', [\App\Http\Controllers\V1\MiniQyController::class, 'getInfoByH5'])->name('getInfoByH5');
});
Route::prefix('mini')->name('mini.v1.')->middleware(['auth:mini_user'])->group(function () {
    // Route::get('getHomeProduct', [\App\Http\Controllers\V1\MiniQyController::class, 'getHomeProduct'])->name('getHomeProduct');
});
